package max.ta.stock.indicator;

import java.text.SimpleDateFormat;
import java.util.Date;

public class IndicatorValue {

    private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("d/M/yyyy");
    private final Date date;
    private final double value;

    public IndicatorValue(Date date, double value) {
	super();
	this.date = date;
	this.value = value;
    }

    public Date getDate() {
	return date;
    }

    public double getValue() {
	return value;
    }

    @Override
    public String toString() {
	return "IndicatorValue [" + DATE_FORMAT.format(date) + ":" + value + "]";
    }
}
